// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import App from './App'
import router from './router'
import storage from './common/utils/storage'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/iconfont/iconfont.css'
import * as echarts from 'echarts'
import i18n from './common/i18n'
import { exportToExcel } from '@/common/utils/util.js'
import animated from 'animate.css'

Vue.use(ElementUI, {
    i18n: (key, value) => i18n.t(key, value)
}); //全部引入   可以根据需求按需引入
Vue.use(animated)

Vue.prototype.$storage = storage //设置全局缓存属性
Vue.prototype.$eventBus = new Vue()
Vue.prototype.$echarts = echarts
Vue.prototype.$exportToExcel = exportToExcel
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    i18n,
    components: { App },
    template: '<App/>'
})